home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1864 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.cencom.net!ns!tanp
  2. From: tanp@ns (Bill Wendling)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Not used functions
  5. Date: 17 Jan 1996 06:05:30 GMT
  6. Organization: Cen-Com Internet
  7. Distribution: world
  8. Message-ID: <4di3ja$j77@news.cencom.net>
  9. References: <8B8F2EE.108500D8CB.uuout@dkb.dk>
  10. NNTP-Posting-Host: ns.cencom.net
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. ROLAND ERBS inexplicably wrote:
  14. }     Now, I have a lot of string definitions and a lot of functions that I do 
  15. }not use anymore. Both strings and functions are not static-declared. I want to 
  16. }delete these strings and functions.Does anyone know a program who can check if 
  17. }these are used? Can PC-lint do it?
  18. }     
  19.  
  20. Roland,
  21.  
  22. The only reliable way I found to delete dead code and be sure that it isn't
  23. used is to do it manually.  A simple text search program should tell you 
  24. which modules/functions are calling the dead code, if any. If none are, then
  25. delete it.  If some are and you can make them stop, do it... I know this
  26. isn't what you want to hear, but it's true.
  27.  
  28. --
  29. Bill Wendling         | "Pinky, are you thinking what I'm thinking?"
  30. tanp@ns.cencom.net  | "I think so, Brain, but burlap chafes me so."
  31. "Boom Shanka"       | Finger me for my Geek Code...NOW!
  32.